//缓存数据配置

class configs {
    static tonken={
        set:(token)=>{
            localStorage.setItem('token',token)   
        },
        get:()=>{
            return localStorage.getItem('token')||''
        }
    }
    static userInformation={
        set:(information)=>{
            localStorage.setItem('userInformation',JSON.stringify(information))   
        },
        get:()=>{
            let data={}
            data=JSON.parse(localStorage.getItem('userInformation')||'')      
            return data
        }
    }
    static getOut=()=>{
        localStorage.setItem('token','')
        localStorage.setItem('userInformation','') 
    }
}
export  default configs